package com.zc.portal.iface.repository;

import com.zc.portal.domain.pojo.PcmcUser;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface PcmcUserRepository {

    public static final String NAME_SPACE = "com.zc.portal.iface.reposity.PcmcUserRepository.";

    List<PcmcUser> queryAll();

    PcmcUser queryPcmcUser(PcmcUser user);

    PcmcUser queryPcmcUserByCode(String userCode);

    PcmcUser queryPcmcUserById(Integer userId);

    String queryPassword(String userCode);

    String queryUserNameByCode(String userCode);

    String queryUserNameById(Integer userId);

    @Transactional
    int deletePcmcUserByCode(String userCode);

    @Transactional
    int deletePcmcUserById(Integer id);

    @Transactional
    int updatePcmcUser(PcmcUser pcmcUser);

    @Transactional
    int insertPcmcUser(PcmcUser pcmcUser);

}

